package abaco.gui;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JMenuItem;
import javax.swing.JPopupMenu;
/**
 * 
 * @author bruno
 *
 */
public class Menu  extends JPopupMenu{
	/**
	 * 
	 */
	public Menu() {
		super();
		
		JMenuItem copy  = new JMenuItem("copy");
		JMenuItem cut   = new JMenuItem("cut");
		JMenuItem paste = new JMenuItem("paste");
		copy.addActionListener(new ActionListener() {  
            public void actionPerformed(ActionEvent ae) {  
                copy();  
            }  
        });
		cut.addActionListener(new ActionListener() {  
            public void actionPerformed(ActionEvent ae) {  
                cut();  
            }  
        });
		paste.addActionListener(new ActionListener() {  
            public void actionPerformed(ActionEvent ae) {  
                paste();  
            }  
        });
		add(copy);
		add(cut);
		add(paste);
	}
	/**
	 * 
	 */
	public void copy() {
		System.out.println("copy actived");
	}
	/**
	 * 
	 */
	public void cut() {
		System.out.println("cut actived");
	}
	/**
	 * 
	 */
	public void paste() {
		System.out.println("paste actived");
	}
}